package com.abc.scholarship.mapper;


import com.abc.scholarship.domain.dto.UserStudentDTO;
import com.abc.scholarship.domain.entity.User;
import com.abc.scholarship.domain.vo.resp.ApplyVO;
import com.abc.scholarship.domain.vo.resp.UserQueryVo;
import com.abc.scholarship.domain.vo.resp.UserStudentVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author jzw
 * @since 2024-07-02
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 分页连表查询
     * @param
     * @param
     * @return
     */
    List<UserStudentVO> getPage(@Param("page") Page<UserStudentVO> page, @Param("userQueryVo") UserQueryVo userQueryVo);

    UserStudentVO getUserById(Long id);


}
